package cn.kgc.crowd1048.fundingadmin.service;

import cn.kgc.crowd1048.fundingadmin.entity.TRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.context.support.BeanDefinitionDsl;

import javax.management.relation.Role;
import java.util.List;

public interface TRoleService extends IService<TRole> {

//    分页的方法
    public PageInfo<TRole> queryForKeywordWithPage(Integer pageNum,Integer pageSize,String keyword);

    public List<TRole> getRoleListByIdList(List<Integer> roleIdList);

    public void batchRemove(List<Integer> roleIdList);

    //添加的方法
    public void saveRole(String roleName);

//    修改的方法
    public void updateRole(TRole role);
}
